package GUIs;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


/**
 *
 * @author nik
 */
public class StoreCreation extends javax.swing.JFrame {

    /**
     * Creates new form dimioyrgia_katastimatos
     */
    public StoreCreation() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        Label_StoreCreation_Welcome = new javax.swing.JLabel();
        Label_StoreCreation_Name = new javax.swing.JLabel();
        Label_StoreCreation_Address = new javax.swing.JLabel();
        TextField_StoreCreation_Name = new javax.swing.JTextField();
        TextField_StoreCreation_Address = new javax.swing.JTextField();
        Button_StoreCreation_Save = new javax.swing.JButton();
        Button_StoreCreation_Cancel = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        Label_StoreCreation_Welcome.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        Label_StoreCreation_Welcome.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        Label_StoreCreation_Welcome.setText("Εισαγωγή νέου καταστήματος");

        Label_StoreCreation_Name.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        Label_StoreCreation_Name.setText("Όνομα καταστήματος :");

        Label_StoreCreation_Address.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        Label_StoreCreation_Address.setText("Διεύθυνση καταστήματος :");

        TextField_StoreCreation_Name.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        TextField_StoreCreation_Name.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                TextField_StoreCreation_NameActionPerformed(evt);
            }
        });

        Button_StoreCreation_Save.setText("Καραχώρηση εγγραφής");

        Button_StoreCreation_Cancel.setText("Ακύρωση καταχώρησης");
        Button_StoreCreation_Cancel.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Button_StoreCreation_CancelActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(Button_StoreCreation_Save)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(Button_StoreCreation_Cancel))
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(Label_StoreCreation_Name)
                            .addComponent(Label_StoreCreation_Address))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(TextField_StoreCreation_Name, javax.swing.GroupLayout.DEFAULT_SIZE, 145, Short.MAX_VALUE)
                            .addComponent(TextField_StoreCreation_Address)))
                    .addComponent(Label_StoreCreation_Welcome, javax.swing.GroupLayout.PREFERRED_SIZE, 320, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(21, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(Label_StoreCreation_Welcome)
                .addGap(16, 16, 16)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(Label_StoreCreation_Name)
                    .addComponent(TextField_StoreCreation_Name, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(Label_StoreCreation_Address)
                    .addComponent(TextField_StoreCreation_Address, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(Button_StoreCreation_Save)
                    .addComponent(Button_StoreCreation_Cancel))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void Button_StoreCreation_CancelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Button_StoreCreation_CancelActionPerformed
        // TODO add your handling code here:
        this.setVisible(false);
    }//GEN-LAST:event_Button_StoreCreation_CancelActionPerformed

    private void TextField_StoreCreation_NameActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_TextField_StoreCreation_NameActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_TextField_StoreCreation_NameActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(StoreCreation.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(StoreCreation.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(StoreCreation.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(StoreCreation.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new StoreCreation().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton Button_StoreCreation_Cancel;
    private javax.swing.JButton Button_StoreCreation_Save;
    private javax.swing.JLabel Label_StoreCreation_Address;
    private javax.swing.JLabel Label_StoreCreation_Name;
    private javax.swing.JLabel Label_StoreCreation_Welcome;
    private javax.swing.JTextField TextField_StoreCreation_Address;
    private javax.swing.JTextField TextField_StoreCreation_Name;
    // End of variables declaration//GEN-END:variables
}
